import request from '@/utils/request'

// 查询薪资记录列表
export function listSalaryrecords(query) {
  return request({
    url: '/ldcm/salaryrecords/list',
    method: 'get',
    params: query
  })
}

// 查询薪资记录详细
export function getSalaryrecords(recordId) {
  return request({
    url: '/ldcm/salaryrecords/' + recordId,
    method: 'get'
  })
}

// 新增薪资记录
export function addSalaryrecords(data) {
  return request({
    url: '/ldcm/salaryrecords',
    method: 'post',
    data: data
  })
}

// 修改薪资记录
export function updateSalaryrecords(data) {
  return request({
    url: '/ldcm/salaryrecords',
    method: 'put',
    data: data
  })
}

// 删除薪资记录
export function delSalaryrecords(recordId) {
  return request({
    url: '/ldcm/salaryrecords/' + recordId,
    method: 'delete'
  })
}

// 薪资统计报表
export function getSalaryCount() {
  return request({
    url: '/ldcm/salaryrecords/salaryCount' ,
    method: 'get',
  })
}
